﻿@model IEnumerable<TruckingApplication.Dal.EntityModels.ORDER>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
        <th>
            orderNum
        </th>
        <th>
            dispatcherID
        </th>
        <th>
            gross
        </th>
        <th>
            net
        </th>
        <th>
            carrierRate
        </th>
        <th>
            max
        </th>
        <th>
            paidStatus
        </th>
        <th>
            dueDate
        </th>
        <th>
            mileage
        </th>
        <th>
            deadHeadMileage
        </th>
        <th>
            quickPay
        </th>
        <th>
            lumperFee
        </th>
        <th>
            brokerID
        </th>
        <th>
            carrierID
        </th>
        <th>
            pickupCity
        </th>
        <th>
            pickupState
        </th>
        <th>
            dropOffCity
        </th>
        <th>
            dropOffState
        </th>
        <th>
            statusID
        </th>
        <th>
            notes
        </th>
        <th>
            resourceID
        </th>
        <th>
            active
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.orderNum)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.dispatcherID)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.gross)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.net)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.carrierRate)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.max)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.paidStatus)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.dueDate)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.mileage)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.deadHeadMileage)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.quickPay)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.lumperFee)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.brokerID)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.carrierID)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.pickupCity)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.pickupState)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.dropOffCity)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.dropOffState)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.statusID)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.notes)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.resourceID)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.active)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.orderID }) |
            @Html.ActionLink("Details", "Details", new { id=item.orderID }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.orderID })
        </td>
    </tr>
}

</table>
